-
Notifications
You must be signed in to change notification settings - Fork 1
feat(rust/cardano-chain-follower): Implement time_to_slot function for Network
#91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
✅ Test Report | |
stevenj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but we need some tests which use the slot_to_time function to get a time for a slot, and then convert it back to a slot with the new function. They should be equal.
You should also test the other way around, time to slot, and then slot back to time. Again they should be equal.
These tests make sure that we are consistent with the Pallas implementation.
Also, make sure you check a very late time thats in the conway era of the blockchain.
stevenj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
time_to_slotfunction and added unit tests for the function.Related Issue(s)
Closes #89
Please confirm the following checks